package com.cjw.campus.core.enums;

import lombok.Getter;

/**
 * 响应编码枚举
 * @author xiefan
 */
@Getter
public enum ResponseCodeEnum {

    // 查询成功
    SELECT_SUCCESS(1000, "查询成功"),
    // 查询失败
    SELECT_FAIL(1001, "查询失败"),
    // 保存成功
    SAVE_SUCCESS(1002, "保存成功"),
    // 保存失败
    SAVE_FAIL(1003, "保存失败"),
    // 修改成功
    UPDATE_SUCCESS(1004, "修改成功"),
    // 修改失败
    UPDATE_FAIL(1005, "修改失败"),
    // 删除成功
    REMOVE_SUCCESS(1006, "删除成功"),
    // 删除失败
    REMOVE_FAIL(1007, "删除失败"),
    // 上传成功
    UPLOAD_SUCCESS(1008, "上传成功"),
    // 导入成功
    IMPORT_SUCCESS(1009, "导入成功"),
    // 导入失败
    IMPORT_FAIL(1010, "导入失败"),
    SERVER_EXCEPTION(1011, "服务器异常"),
    NOT_FOUND_PATH(1012, "找不到路径")
    ;

    private Integer code;

    private String message;

    ResponseCodeEnum (Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
